473,480 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Snap.com and dynamic content

I was wondering if anyone has experience with snap.com's service,
where you put a reference to a remote script on your page. The script
causes a small snapshot of a web page to appear wherever the user
mouses over a link on your page.

This is very simple to implement on a static page -- paste in one line
of code. But what about when you have a dynamic page with content
pulled in by AJAX requests? On a static page, the script is loaded
once of course. It would be ridiculous to try to reload the script
every time new content is fetched. So it seems that a hack is called
for.

I'm guessing there's a function within snap's script that can be
called, to reset the mouseover event handler...

Anybody ever deal with this?
Aug 10 '08 #1
2 1556
Razzbar wrote:
I was wondering if anyone has experience with snap.com's service, where
you put a reference to a remote script on your page. The script causes a
small snapshot of a web page to appear wherever the user mouses over a
link on your page.
Well, I would not place much confidence in a service which homepage alerts
"This page requires AC_RunActiveContent.js" to a user of Firefox 3.0.1, and
shows 75 errors and 22 warnings when submitted to the W3C Markup Validator.
This is very simple to implement on a static page -- paste in one line of
code. But what about when you have a dynamic page with content pulled in
by AJAX requests? On a static page, the script is loaded once of
course. It would be ridiculous to try to reload the script every time new
content is fetched. So it seems that a hack is called for.
Use a debugger or DOM inspector application to find out what "pasting in one
line of code" actually does when the document is displayed. Then it might
be possible to do something about the result.
I'm guessing there's a function within snap's script that can be called,
to reset the mouseover event handler...
Obviously you have no clue what you are talking about. You would be
well-advised to stay away from the more complex aspects of Web development
as far as you can until that changed.
PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
Aug 10 '08 #2
I was actually interested in the more general question of how to deal
with "ad servers", etc. with dynamic ("ajax") pages. It was my mistake
to frame the question in terms of a specific service.

Dynamic content is a major trend in website architecture, and all of
the (few) ad servers that I've looked at work the same way -- from the
host page coder's pont of view -- by having the host page load a
script from the ad server. From there, it's all a black box as to what
the ad server script does. I know Google's works very different from
Snap's. But the point is, they all do it just once, when the presumed-
to-be-static page loads. They don't update themselves when page
content changes, because they're not designed to do that. Yet.

Don't worry about it.
Aug 11 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
6805
by: Rhonda | last post by:
Using AccessXP I have lost snap to grid on my system. New or existing databases do not snap to grid for forms and reports in design view. Anyone have an idea on how to get it back?? Thanks. ...
3
1312
by: Stephen Gennard | last post by:
Hello, I having a problem dynamically invoking a static method that takes a reference to a SByte*. If I do it directly it works just fine. Anyone any ideas why? I have include a example...
2
4968
by: SStory | last post by:
I have a picture that I allow the user to move around and would like to offer grid support like VB and other apps so that it will snap to the nearest point. How can I offer grid support so that...
3
13721
by: NateDawg | last post by:
I'm reposting this. I'm kinda in a bind untill i get this figured out, so if anyone has some input it would sure help me out. Ok, I’ve noticed a few gridview problems floating around the forum....
7
22465
by: Mike Livenspargar | last post by:
We have an application converted from v1.1 Framework to v2.0. The executable references a class library which in turn has a web reference. The web reference 'URL Behavior' is set to dynamic. We...
2
1634
by: serge calderara | last post by:
Dear all, Technically, what dynamic web page really means. Is it simply due to the fact that the content can be change without recompiling the web application by simply changing for example data...
0
1887
by: Brian Henry | last post by:
Ok I've never implemented a snap location before so I dont really know what im doing wrong here... anyways, I am making a custom slider control that takes dates as its values instead of integers......
7
8201
by: Jo | last post by:
Hi, How can i differentiate between static and dynamic allocated objects? For example: void SomeFunction1() { CObject *objectp = new CObject; CObject object;
9
2911
by: pbd22 | last post by:
Hi. This is just a disaster management question. I am using XMLHTTP for the dynamic loading of content in a very crucial area of my web site. Same as an IFrame, but using XMLHTTP and a DIV. I...
0
6908
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7081
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6737
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6921
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5336
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
2984
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
179
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.